package com.zhentao.utils.common;

import com.zhentao.model.user.pojo.ApUser;

public class AppThreadLocalUtil {


    private final static ThreadLocal<ApUser> T_THREAD_LOCAL = new ThreadLocal();


    public static void setUser(ApUser apUser) {
        T_THREAD_LOCAL.set(apUser);
    }

    public static ApUser getUser() {
        return T_THREAD_LOCAL.get();
    }

    public static void clear() {
        T_THREAD_LOCAL.remove();
    }


}